#include "reg52.h"
#include "intrins.h"
sbit Buzzer=P2^7;
void Buzzer_Delay500us()     //@11.0592MHz
{
	

	unsigned char i, j;

	i = 6;
	j = 93;
	do
	{
		while (--j);
	} while (--i);
}

	



void Buzzer_Time(unsigned int ms)
{
	unsigned int i;
	for(i=0;i<ms*2;i++)
	{
		Buzzer=!Buzzer;
		Buzzer_Delay500us();
	}
}